package com.holylin.learning.java.spring.data.jpa;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.springframework.stereotype.Repository;

//@Repository("userDao")
//public class UserDAOImpl implements UserDAO {
public class UserDaoTempImpl{
	//@PersistenceContext
	private EntityManager em;

	public User save(User user) {
		em.persist(user);
		return user;
	}

}
